// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import fastClick from 'fastclick'
import 'styles/reset.css'
import 'styles/border.css'
import 'styles/iconfont.css'
import VueAwesomeSwiper from 'vue-awesome-swiper'
import 'babel-polyfill' //项目在所有浏览器上都支持promise了，手机上显示白屏的问题就可以解决了
//要是还是出现白屏，那有可能是webpack-dev-server的问题
import 'swiper/dist/css/swiper.css'
import store from './store'

import {
  httpGet,
  httpPost
} from './service';

Vue.prototype.$get =httpGet;
Vue.prototype.$post =httpPost;

  Vue.config.productionTip = false
fastClick.attach(document.body)
Vue.use(VueAwesomeSwiper)
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: {
    App
  },
  template: '<App/>'
})
